<?php



class TutorMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.TutorMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('tutor');
		$tMap->setPhpName('Tutor');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addForeignKey('USER_ID', 'UserId', 'int', CreoleTypes::INTEGER, 'sf_guard_user', 'ID', true, null);

		$tMap->addColumn('FIRSTNAME', 'Firstname', 'string', CreoleTypes::VARCHAR, false, 50);

		$tMap->addColumn('LASTNAME', 'Lastname', 'string', CreoleTypes::VARCHAR, false, 50);

		$tMap->addColumn('RATES', 'Rates', 'string', CreoleTypes::VARCHAR, false, 10);

		$tMap->addForeignKey('SERVICEAREA_ID', 'ServiceareaId', 'int', CreoleTypes::INTEGER, 'servicearea', 'ID', false, null);

		$tMap->addColumn('ADDITIONALINFO', 'Additionalinfo', 'string', CreoleTypes::LONGVARCHAR, false, null);

		$tMap->addColumn('UPDATED_AT', 'UpdatedAt', 'int', CreoleTypes::TIMESTAMP, false, null);

	} 
} 